Zettelkasten support#286
Conversation
|
(made with claude code) |
|
Do you need Lines 5 to 9 in ff2f47a |
There was a problem hiding this comment.
Pull request overview
Adds a new QOwnNotes scripting extension providing Zettelkasten-style IDs, link insertion, and automatic/manual repair of [[target|ID]] links to survive note renames.
Changes:
- Introduces
zettelkasten.qmlwith actions to insert IDs, insert links via a picker dialog, and repair stale links (on-open and full-vault scan). - Adds a QML modal dialog (
ZkLinkDialog.qml) to filter/select notes by detected ID. - Adds extension metadata (
info.json) and end-user documentation (README.md).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| zettelkasten/zettelkasten.qml | Core script: ID generation/detection, link insertion, backlink repair logic, actions/hooks |
| zettelkasten/ZkLinkDialog.qml | Modal UI for filtering and selecting a note to insert a ZK link |
| zettelkasten/info.json | Extension metadata (name/id/version/minAppVersion/description) |
| zettelkasten/README.md | Usage docs: concepts, link format, actions, settings |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
done |
|
Just ping me when you want me to review again. |
I suppose everything is done now. There is still this check formatting error that I can't fix, Claude can sometimes fix it but after many iterations... :/ |
|
In case you want to go crazy, there is a complete https://devenv.sh/ dev environment that also does linting for this project via git commit hooks, the same is used in ci... Otherwise I'll fix the errors. :) |
|
I really think you need to tell the user in the script description in info.json how to use the script. I wanted to try the script, but I have no idea what it should do and how to use it just from the description. 🤔 |
|
Same goes for your text snippets script. 😅 |
|
@pbek
Ok, I'll do it ASAP (for this one and for the snippets) and I'll reopen a new PR for this! This is strange for the broken character, it's just Is is better to delete those branches and create a new one for the descriptions or can I reuse them without messing everything? |
|
Yes, always use the latest main branch as base. |
here is an extension that allows to uses Zettelkasten style links and method within QownNotes. This kind of features has been requested several times cf.https://github.com/pbek/QOwnNotes/issues?q=is%3Aissue%20state%3Aclosed%20zettelkasten
It works almost like on Zettlr: you define your personal way of adding a unique ID for your Zettelkasten (by default:
%Y%M%D%h%m%swhich will turn into20260430143012. My personal preference isid%Y%M%Dx%h%m%s=>id20260430x143012because it's more unlikely to be mistaken from a random date copied from elsewhere. The syntax format is ECMAscripts https://en.wikipedia.org/wiki/ECMAScript as used on Zettlr. It's a bit different from the date format used on qownnotes (https://www.qownnotes.org/editor/time-formats.html) but it shouldn't really be an issue.